APLTOTEX

Method APLTOTEX of class APL2TEX created 19891111,18:23:11
Protocol: Internal

Syntax

vector of lines APLTOTEX line of text
vector of lines F APLTOTEX line of text
vector of lines V APLTOTEX line of text
Reference
APLTOTEX translates a line of text into a sequence of LATEX macro calls. The default is variable spacing ( V).


Description
APLTOTEX inserts macros which allow line breaking of very long APL lines. APLTOTEX converts the APL code to LATEX macros. If fixed spacing is required, each macro of the macro stream is wrapped into a fixed length box. APLTOTEX formats the macro stream into lines of approximately 80 characters.

Warning: This is a really bad one: asks for a blockwise filter operator implementation. Should be rewritten. Memoizing TEXM saves 250ms per call. (And this one is called often. More savings possible by using simple homogenous arrays.) Fixed and variable spacing should be done with different translation tables.

Fixed spacing may cause TEX memory overflow on some TEX implemenations.



\begin{APLfns}
\begin{APLfnsline}{}{\APLdel}
\APLZ\APLleftarrow\APLY\APLspace\AP...
...
\end{APLfnsline}\begin{APLfnsline}{}{\APLdel}
\par
\end{APLfnsline}\end{APLfns}

Result
Z
Arguments
Y A
Used Local Names
C B I D IO L ID DENS E
Unused Local Names

Functions

System Functions
NC AV
Variables

Operators

Labels
END JUMP
Undefined Names
TEXMACROS


Static Function Call Hierarchy